home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / UT2004 Bonus Pack / ut2004-ecebonuspack.exe / System / OnslaughtBP.u / ONSDualACSideGun_ONSShockTankCannon_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-14  |  9.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4c 8f 01 2f 2f 2d 2d 2d |........|L..//---|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0a 2f 2f 0d 0a 2f 2f |--------|..//..//|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 63 6c 61 |--------|---..cla|
|00000090| 73 73 20 4f 4e 53 53 68 | 6f 63 6b 54 61 6e 6b 43 |ss ONSSh|ockTankC|
|000000a0| 61 6e 6e 6f 6e 20 65 78 | 74 65 6e 64 73 20 4f 4e |annon ex|tends ON|
|000000b0| 53 57 65 61 70 6f 6e 3b | 0d 0a 0d 0a 76 61 72 28 |SWeapon;|....var(|
|000000c0| 29 20 20 20 66 6c 6f 61 | 74 20 20 20 4d 61 78 53 |) floa|t MaxS|
|000000d0| 68 69 65 6c 64 48 65 61 | 6c 74 68 3b 0d 0a 76 61 |hieldHea|lth;..va|
|000000e0| 72 28 29 20 20 20 66 6c | 6f 61 74 20 20 20 4d 61 |r() fl|oat Ma|
|000000f0| 78 44 65 6c 61 79 54 69 | 6d 65 3b 0d 0a 76 61 72 |xDelayTi|me;..var|
|00000100| 28 29 20 20 20 66 6c 6f | 61 74 20 20 20 53 68 69 |() flo|at Shi|
|00000110| 65 6c 64 52 65 63 68 61 | 72 67 65 52 61 74 65 3b |eldRecha|rgeRate;|
|00000120| 0d 0a 76 61 72 09 09 66 | 6c 6f 61 74 09 4c 61 73 |..var..f|loat.Las|
|00000130| 74 53 68 69 65 6c 64 48 | 69 74 54 69 6d 65 3b 0d |tShieldH|itTime;.|
|00000140| 0a 0d 0a 76 61 72 20 20 | 20 20 20 66 6c 6f 61 74 |...var | float|
|00000150| 20 20 20 43 75 72 72 65 | 6e 74 53 68 69 65 6c 64 | Curre|ntShield|
|00000160| 48 65 61 6c 74 68 3b 0d | 0a 76 61 72 20 20 20 20 |Health;.|.var |
|00000170| 20 66 6c 6f 61 74 20 20 | 20 43 75 72 72 65 6e 74 | float | Current|
|00000180| 44 65 6c 61 79 54 69 6d | 65 3b 0d 0a 76 61 72 20 |DelayTim|e;..var |
|00000190| 20 20 20 20 66 6c 6f 61 | 74 20 20 20 43 75 72 72 | floa|t Curr|
|000001a0| 65 6e 74 52 65 63 68 61 | 72 67 65 54 69 6d 65 3b |entRecha|rgeTime;|
|000001b0| 0d 0a 76 61 72 20 20 20 | 20 20 62 6f 6f 6c 20 20 |..var | bool |
|000001c0| 20 20 62 53 68 69 65 6c | 64 41 63 74 69 76 65 2c | bShiel|dActive,|
|000001d0| 20 62 4c 61 73 74 53 68 | 69 65 6c 64 41 63 74 69 | bLastSh|ieldActi|
|000001e0| 76 65 3b 0d 0a 76 61 72 | 09 09 62 6f 6f 6c 09 62 |ve;..var|..bool.b|
|000001f0| 50 75 74 53 68 69 65 6c | 64 55 70 3b 0d 0a 76 61 |PutShiel|dUp;..va|
|00000200| 72 20 20 20 20 20 62 79 | 74 65 20 20 20 20 53 68 |r by|te Sh|
|00000210| 69 65 6c 64 48 69 74 43 | 6f 75 6e 74 2c 20 4c 61 |ieldHitC|ount, La|
|00000220| 73 74 53 68 69 65 6c 64 | 48 69 74 43 6f 75 6e 74 |stShield|HitCount|
|00000230| 3b 0d 0a 0d 0a 76 61 72 | 20 20 20 20 20 4f 4e 53 |;....var| ONS|
|00000240| 53 68 6f 63 6b 54 61 6e | 6b 53 68 69 65 6c 64 20 |ShockTan|kShield |
|00000250| 20 20 53 68 6f 63 6b 53 | 68 69 65 6c 64 3b 0d 0a | ShockS|hield;..|
|00000260| 0d 0a 72 65 70 6c 69 63 | 61 74 69 6f 6e 0d 0a 7b |..replic|ation..{|
|00000270| 0d 0a 20 20 20 20 72 65 | 6c 69 61 62 6c 65 20 69 |.. re|liable i|
|00000280| 66 20 28 62 4e 65 74 4f | 77 6e 65 72 20 26 26 20 |f (bNetO|wner && |
|00000290| 52 6f 6c 65 20 3d 3d 20 | 52 4f 4c 45 5f 41 75 74 |Role == |ROLE_Aut|
|000002a0| 68 6f 72 69 74 79 29 0d | 0a 20 20 20 20 20 20 20 |hority).|. |
|000002b0| 20 43 75 72 72 65 6e 74 | 53 68 69 65 6c 64 48 65 | Current|ShieldHe|
|000002c0| 61 6c 74 68 3b 0d 0a 0d | 0a 20 20 20 20 72 65 6c |alth;...|. rel|
|000002d0| 69 61 62 6c 65 20 69 66 | 20 28 52 6f 6c 65 20 3d |iable if| (Role =|
|000002e0| 3d 20 52 4f 4c 45 5f 41 | 75 74 68 6f 72 69 74 79 |= ROLE_A|uthority|
|000002f0| 29 0d 0a 20 20 20 20 20 | 20 20 20 62 53 68 69 65 |).. | bShie|
|00000300| 6c 64 41 63 74 69 76 65 | 2c 20 53 68 69 65 6c 64 |ldActive|, Shield|
|00000310| 48 69 74 43 6f 75 6e 74 | 3b 0d 0a 7d 0d 0a 0d 0a |HitCount|;..}....|
|00000320| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00000330| 6f 6e 20 50 6f 73 74 4e | 65 74 42 65 67 69 6e 50 |on PostN|etBeginP|
|00000340| 6c 61 79 28 29 0d 0a 7b | 0d 0a 20 20 20 20 53 75 |lay()..{|.. Su|
|00000350| 70 65 72 2e 50 6f 73 74 | 4e 65 74 42 65 67 69 6e |per.Post|NetBegin|
|00000360| 50 6c 61 79 28 29 3b 0d | 0a 0d 0a 20 20 20 20 53 |Play();.|... S|
|00000370| 68 6f 63 6b 53 68 69 65 | 6c 64 20 3d 20 73 70 61 |hockShie|ld = spa|
|00000380| 77 6e 28 63 6c 61 73 73 | 27 4f 4e 53 53 68 6f 63 |wn(class|'ONSShoc|
|00000390| 6b 54 61 6e 6b 53 68 69 | 65 6c 64 27 2c 20 73 65 |kTankShi|eld', se|
|000003a0| 6c 66 29 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |lf);....| if (|
|000003b0| 53 68 6f 63 6b 53 68 69 | 65 6c 64 20 21 3d 20 4e |ShockShi|eld != N|
|000003c0| 6f 6e 65 29 0d 0a 20 20 | 20 20 20 20 20 20 41 74 |one).. | At|
|000003d0| 74 61 63 68 54 6f 42 6f | 6e 65 28 53 68 6f 63 6b |tachToBo|ne(Shock|
|000003e0| 53 68 69 65 6c 64 2c 20 | 27 45 6c 65 63 74 72 6f |Shield, |'Electro|
|000003f0| 47 75 6e 27 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Gun');..|}....fun|
|00000400| 63 74 69 6f 6e 20 62 79 | 74 65 20 42 65 73 74 4d |ction by|te BestM|
|00000410| 6f 64 65 28 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ode()..{|...local|
|00000420| 20 62 6f 74 20 42 3b 0d | 0a 0d 0a 09 69 66 20 28 | bot B;.|....if (|
|00000430| 20 43 75 72 72 65 6e 74 | 53 68 69 65 6c 64 48 65 | Current|ShieldHe|
|00000440| 61 6c 74 68 20 3c 3d 20 | 30 20 29 0d 0a 09 09 72 |alth <= |0 )....r|
|00000450| 65 74 75 72 6e 20 30 3b | 0d 0a 09 69 66 20 28 20 |eturn 0;|...if ( |
|00000460| 50 72 6f 6a 65 63 74 69 | 6c 65 28 49 6e 73 74 69 |Projecti|le(Insti|
|00000470| 67 61 74 6f 72 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |gator.Co|ntroller|
|00000480| 2e 54 61 72 67 65 74 29 | 20 21 3d 20 4e 6f 6e 65 |.Target)| != None|
|00000490| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 31 3b 0d | )....re|turn 1;.|
|000004a0| 0a 0d 0a 09 42 20 3d 20 | 42 6f 74 28 49 6e 73 74 |....B = |Bot(Inst|
|000004b0| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|000004c0| 72 29 3b 0d 0a 09 69 66 | 20 28 20 28 42 20 3d 3d |r);...if| ( (B ==|
|000004d0| 20 4e 6f 6e 65 29 20 7c | 7c 20 28 42 2e 45 6e 65 | None) ||| (B.Ene|
|000004e0| 6d 79 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |my == No|ne) )...|
|000004f0| 09 72 65 74 75 72 6e 20 | 30 3b 0d 0a 0d 0a 09 69 |.return |0;.....i|
|00000500| 66 20 28 20 62 50 75 74 | 53 68 69 65 6c 64 55 70 |f ( bPut|ShieldUp|
|00000510| 20 7c 7c 20 21 42 2e 45 | 6e 65 6d 79 56 69 73 69 | || !B.E|nemyVisi|
|00000520| 62 6c 65 28 29 20 29 0d | 0a 09 7b 0d 0a 09 09 4c |ble() ).|..{....L|
|00000530| 61 73 74 53 68 69 65 6c | 64 48 69 74 54 69 6d 65 |astShiel|dHitTime|
|00000540| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|00000550| 6f 6e 64 73 3b 0d 0a 09 | 09 62 50 75 74 53 68 69 |onds;...|.bPutShi|
|00000560| 65 6c 64 55 70 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |eldUp = |false;..|
|00000570| 09 09 72 65 74 75 72 6e | 20 31 3b 0d 0a 09 7d 0d |..return| 1;...}.|
|00000580| 0a 0d 0a 09 69 66 20 28 | 20 56 53 69 7a 65 28 42 |....if (| VSize(B|
|00000590| 2e 45 6e 65 6d 79 2e 4c | 6f 63 61 74 69 6f 6e 20 |.Enemy.L|ocation |
|000005a0| 2d 20 4c 6f 63 61 74 69 | 6f 6e 29 20 3c 20 39 30 |- Locati|on) < 90|
|000005b0| 30 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |0 )...{.|...if ( |
|000005c0| 62 53 68 69 65 6c 64 41 | 63 74 69 76 65 20 29 0d |bShieldA|ctive ).|
|000005d0| 0a 09 09 09 72 65 74 75 | 72 6e 20 30 3b 0d 0a 09 |....retu|rn 0;...|
|000005e0| 09 65 6c 73 65 0d 0a 09 | 09 09 72 65 74 75 72 6e |.else...|..return|
|000005f0| 20 31 3b 0d 0a 09 7d 0d | 0a 09 69 66 20 28 20 62 | 1;...}.|..if ( b|
|00000600| 53 68 69 65 6c 64 41 63 | 74 69 76 65 20 26 26 20 |ShieldAc|tive && |
|00000610| 28 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e |(Level.T|imeSecon|
|00000620| 64 73 20 2d 20 4c 61 73 | 74 53 68 69 65 6c 64 48 |ds - Las|tShieldH|
|00000630| 69 74 54 69 6d 65 20 3c | 20 32 29 20 29 0d 0a 09 |itTime <| 2) )...|
|00000640| 20 20 20 72 65 74 75 72 | 6e 20 31 3b 0d 0a 09 65 | retur|n 1;...e|
|00000650| 6c 73 65 20 69 66 20 28 | 20 42 2e 45 6e 65 6d 79 |lse if (| B.Enemy|
|00000660| 20 21 3d 20 42 2e 54 61 | 72 67 65 74 20 29 0d 0a | != B.Ta|rget )..|
|00000670| 09 09 72 65 74 75 72 6e | 20 30 3b 0d 0a 09 65 6c |..return| 0;...el|
|00000680| 73 65 0d 0a 09 7b 0d 0a | 09 09 2f 2f 20 63 68 65 |se...{..|..// che|
|00000690| 63 6b 20 69 66 20 6e 65 | 61 72 20 66 72 69 65 6e |ck if ne|ar frien|
|000006a0| 64 6c 79 20 6e 6f 64 65 | 2c 20 61 6e 64 20 62 65 |dly node|, and be|
|000006b0| 74 77 65 65 6e 20 69 74 | 20 61 6e 64 20 65 6e 65 |tween it| and ene|
|000006c0| 6d 79 0d 0a 09 09 69 66 | 20 28 20 28 42 2e 53 71 |my....if| ( (B.Sq|
|000006d0| 75 61 64 2e 53 71 75 61 | 64 4f 62 6a 65 63 74 69 |uad.Squa|dObjecti|
|000006e0| 76 65 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |ve != No|ne) && (|
|000006f0| 56 53 69 7a 65 28 42 2e | 50 61 77 6e 2e 4c 6f 63 |VSize(B.|Pawn.Loc|
|00000700| 61 74 69 6f 6e 20 2d 20 | 42 2e 53 71 75 61 64 2e |ation - |B.Squad.|
|00000710| 53 71 75 61 64 4f 62 6a | 65 63 74 69 76 65 2e 4c |SquadObj|ective.L|
|00000720| 6f 63 61 74 69 6f 6e 29 | 20 3c 20 31 30 30 30 29 |ocation)| < 1000)|
|00000730| 0d 0a 09 09 09 26 26 20 | 28 28 4e 6f 72 6d 61 6c |.....&& |((Normal|
|00000740| 28 42 2e 45 6e 65 6d 79 | 2e 4c 6f 63 61 74 69 6f |(B.Enemy|.Locatio|
|00000750| 6e 20 2d 20 42 2e 53 71 | 75 61 64 2e 53 71 75 61 |n - B.Sq|uad.Squa|
|00000760| 64 4f 62 6a 65 63 74 69 | 76 65 2e 4c 6f 63 61 74 |dObjecti|ve.Locat|
|00000770| 69 6f 6e 29 20 64 6f 74 | 20 4e 6f 72 6d 61 6c 28 |ion) dot| Normal(|
|00000780| 42 2e 50 61 77 6e 2e 4c | 6f 63 61 74 69 6f 6e 20 |B.Pawn.L|ocation |
|00000790| 2d 20 42 2e 53 71 75 61 | 64 2e 53 71 75 61 64 4f |- B.Squa|d.SquadO|
|000007a0| 62 6a 65 63 74 69 76 65 | 2e 4c 6f 63 61 74 69 6f |bjective|.Locatio|
|000007b0| 6e 29 29 20 3e 20 30 2e | 37 29 20 29 0d 0a 09 09 |n)) > 0.|7) )....|
|000007c0| 09 72 65 74 75 72 6e 20 | 31 3b 0d 0a 0d 0a 09 09 |.return |1;......|
|000007d0| 2f 2f 20 75 73 65 20 73 | 68 69 65 6c 64 20 69 66 |// use s|hield if|
|000007e0| 20 68 65 61 76 69 6c 79 | 20 64 61 6d 61 67 65 64 | heavily| damaged|
|000007f0| 0d 0a 09 09 69 66 20 28 | 20 42 2e 50 61 77 6e 2e |....if (| B.Pawn.|
|00000800| 48 65 61 6c 74 68 20 3c | 20 30 2e 33 20 2a 20 42 |Health <| 0.3 * B|
|00000810| 2e 50 61 77 6e 2e 44 65 | 66 61 75 6c 74 2e 48 65 |.Pawn.De|fault.He|
|00000820| 61 6c 74 68 20 29 0d 0a | 09 09 09 72 65 74 75 72 |alth )..|...retur|
|00000830| 6e 20 31 3b 0d 0a 0d 0a | 09 09 2f 2f 20 75 73 65 |n 1;....|..// use|
|00000840| 20 73 68 69 65 6c 64 20 | 61 67 61 69 6e 73 74 20 | shield |against |
|00000850| 68 65 61 76 79 20 76 65 | 68 69 63 6c 65 73 0d 0a |heavy ve|hicles..|
|00000860| 09 09 69 66 20 28 20 28 | 42 2e 45 6e 65 6d 79 20 |..if ( (|B.Enemy |
|00000870| 3d 3d 20 42 2e 54 61 72 | 67 65 74 29 20 26 26 20 |== B.Tar|get) && |
|00000880| 28 56 65 68 69 63 6c 65 | 28 42 2e 45 6e 65 6d 79 |(Vehicle|(B.Enemy|
|00000890| 29 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 56 65 |) != Non|e) && Ve|
|000008a0| 68 69 63 6c 65 28 42 2e | 45 6e 65 6d 79 29 2e 49 |hicle(B.|Enemy).I|
|000008b0| 6d 70 6f 72 74 61 6e 74 | 56 65 68 69 63 6c 65 28 |mportant|Vehicle(|
|000008c0| 29 20 26 26 20 28 42 2e | 45 6e 65 6d 79 2e 43 6f |) && (B.|Enemy.Co|
|000008d0| 6e 74 72 6f 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 |ntroller| != None|
|000008e0| 29 20 0d 0a 09 09 09 26 | 26 20 28 28 56 65 63 74 |) .....&|& ((Vect|
|000008f0| 6f 72 28 42 2e 45 6e 65 | 6d 79 2e 43 6f 6e 74 72 |or(B.Ene|my.Contr|
|00000900| 6f 6c 6c 65 72 2e 52 6f | 74 61 74 69 6f 6e 29 20 |oller.Ro|tation) |
|00000910| 64 6f 74 20 4e 6f 72 6d | 61 6c 28 49 6e 73 74 69 |dot Norm|al(Insti|
|00000920| 67 61 74 6f 72 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |gator.Lo|cation -|
|00000930| 20 42 2e 45 6e 65 6d 79 | 2e 4c 6f 63 61 74 69 6f | B.Enemy|.Locatio|
|00000940| 6e 29 29 20 3e 20 30 2e | 39 29 20 29 0d 0a 09 09 |n)) > 0.|9) )....|
|00000950| 09 72 65 74 75 72 6e 20 | 31 3b 0d 0a 09 20 20 20 |.return |1;... |
|00000960| 72 65 74 75 72 6e 20 30 | 3b 0d 0a 09 7d 0d 0a 7d |return 0|;...}..}|
|00000970| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 68 69 |....func|tion Shi|
|00000980| 65 6c 64 41 67 61 69 6e | 73 74 49 6e 63 6f 6d 69 |eldAgain|stIncomi|
|00000990| 6e 67 28 6f 70 74 69 6f | 6e 61 6c 20 50 72 6f 6a |ng(optio|nal Proj|
|000009a0| 65 63 74 69 6c 65 20 50 | 29 0d 0a 7b 0d 0a 09 69 |ectile P|)..{...i|
|000009b0| 66 20 28 20 50 20 21 3d | 20 4e 6f 6e 65 20 29 0d |f ( P !=| None ).|
|000009c0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 46 69 72 65 |..{....i|f ( Fire|
|000009d0| 43 6f 75 6e 74 44 6f 77 | 6e 20 3e 20 28 56 53 69 |CountDow|n > (VSi|
|000009e0| 7a 65 28 50 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |ze(P.Loc|ation - |
|000009f0| 4c 6f 63 61 74 69 6f 6e | 29 20 2d 20 31 31 30 30 |Location|) - 1100|
|00000a00| 29 2f 56 53 69 7a 65 28 | 50 2e 56 65 6c 6f 63 69 |)/VSize(|P.Veloci|
|00000a10| 74 79 29 20 29 0d 0a 09 | 09 09 72 65 74 75 72 6e |ty) )...|..return|
|00000a20| 3b 0d 0a 09 09 2f 2f 20 | 70 75 74 20 73 68 69 65 |;....// |put shie|
|00000a30| 6c 64 20 75 70 20 69 66 | 20 70 6f 69 6e 74 65 64 |ld up if| pointed|
|00000a40| 20 69 6e 20 72 69 67 68 | 74 20 64 69 72 65 63 74 | in righ|t direct|
|00000a50| 69 6f 6e 0d 0a 09 09 69 | 66 20 28 20 4c 65 76 65 |ion....i|f ( Leve|
|00000a60| 6c 2e 47 61 6d 65 2e 47 | 61 6d 65 44 69 66 66 69 |l.Game.G|ameDiffi|
|00000a70| 63 75 6c 74 79 20 3c 20 | 35 20 29 0d 0a 09 09 7b |culty < |5 )....{|
|00000a80| 0d 0a 09 09 09 43 61 6c | 63 57 65 61 70 6f 6e 46 |.....Cal|cWeaponF|
|00000a90| 69 72 65 28 29 3b 0d 0a | 09 09 09 69 66 20 28 20 |ire();..|...if ( |
|00000aa0| 28 4e 6f 72 6d 61 6c 28 | 50 2e 4c 6f 63 61 74 69 |(Normal(|P.Locati|
|00000ab0| 6f 6e 20 2d 20 57 65 61 | 70 6f 6e 46 69 72 65 4c |on - Wea|ponFireL|
|00000ac0| 6f 63 61 74 69 6f 6e 29 | 20 64 6f 74 20 76 65 63 |ocation)| dot vec|
|00000ad0| 74 6f 72 28 57 65 61 70 | 6f 6e 46 69 72 65 52 6f |tor(Weap|onFireRo|
|00000ae0| 74 61 74 69 6f 6e 29 29 | 20 3c 20 30 2e 37 20 29 |tation))| < 0.7 )|
|00000af0| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |......re|turn;...|
|00000b00| 09 7d 0d 0a 09 09 4c 61 | 73 74 53 68 69 65 6c 64 |.}....La|stShield|
|00000b10| 48 69 74 54 69 6d 65 20 | 3d 20 4c 65 76 65 6c 2e |HitTime |= Level.|
|00000b20| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 09 09 |TimeSeco|nds;....|
|00000b30| 62 50 75 74 53 68 69 65 | 6c 64 55 70 20 3d 20 74 |bPutShie|ldUp = t|
|00000b40| 72 75 65 3b 0d 0a 09 09 | 49 6e 73 74 69 67 61 74 |rue;....|Instigat|
|00000b50| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 46 69 |or.Contr|oller.Fi|
|00000b60| 72 65 57 65 61 70 6f 6e | 41 74 28 49 6e 73 74 69 |reWeapon|At(Insti|
|00000b70| 67 61 74 6f 72 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |gator.Co|ntroller|
|00000b80| 2e 46 6f 63 75 73 29 3b | 0d 0a 09 7d 0d 0a 09 65 |.Focus);|...}...e|
|00000b90| 6c 73 65 20 69 66 20 28 | 20 49 6e 73 74 69 67 61 |lse if (| Instiga|
|00000ba0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 45 |tor.Cont|roller.E|
|00000bb0| 6e 65 6d 79 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |nemy != |None )..|
|00000bc0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 28 46 69 72 65 |.{....if| ( (Fire|
|00000bd0| 43 6f 75 6e 74 44 6f 77 | 6e 20 3e 20 30 2e 32 29 |CountDow|n > 0.2)|
|00000be0| 20 26 26 20 28 46 52 61 | 6e 64 28 29 20 3c 20 30 | && (FRa|nd() < 0|
|00000bf0| 2e 36 29 20 29 0d 0a 09 | 09 09 72 65 74 75 72 6e |.6) )...|..return|
|00000c00| 3b 0d 0a 09 09 4c 61 73 | 74 53 68 69 65 6c 64 48 |;....Las|tShieldH|
|00000c10| 69 74 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |itTime =| Level.T|
|00000c20| 69 6d 65 53 65 63 6f 6e | 64 73 3b 0d 0a 09 09 62 |imeSecon|ds;....b|
|00000c30| 50 75 74 53 68 69 65 6c | 64 55 70 20 3d 20 74 72 |PutShiel|dUp = tr|
|00000c40| 75 65 3b 0d 0a 09 09 49 | 6e 73 74 69 67 61 74 6f |ue;....I|nstigato|
|00000c50| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 46 69 72 |r.Contro|ller.Fir|
|00000c60| 65 57 65 61 70 6f 6e 41 | 74 28 49 6e 73 74 69 67 |eWeaponA|t(Instig|
|00000c70| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |ator.Con|troller.|
|00000c80| 46 6f 63 75 73 29 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |Focus);.|..}..}..|
|00000c90| 0d 0a 65 76 65 6e 74 20 | 62 6f 6f 6c 20 41 74 74 |..event |bool Att|
|00000ca0| 65 6d 70 74 46 69 72 65 | 28 43 6f 6e 74 72 6f 6c |emptFire|(Control|
|00000cb0| 6c 65 72 20 43 2c 20 62 | 6f 6f 6c 20 62 41 6c 74 |ler C, b|ool bAlt|
|00000cc0| 46 69 72 65 29 0d 0a 7b | 0d 0a 20 20 09 69 66 20 |Fire)..{|.. .if |
|00000cd0| 28 52 6f 6c 65 20 21 3d | 20 52 4f 4c 45 5f 41 75 |(Role !=| ROLE_Au|
|00000ce0| 74 68 6f 72 69 74 79 20 | 7c 7c 20 62 46 6f 72 63 |thority ||| bForc|
|00000cf0| 65 43 65 6e 74 65 72 41 | 69 6d 29 0d 0a 09 09 72 |eCenterA|im)....r|
|00000d00| 65 74 75 72 6e 20 46 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn Fa|lse;....|
|00000d10| 09 69 66 20 28 62 41 6c | 74 46 69 72 65 29 0d 0a |.if (bAl|tFire)..|
|00000d20| 20 20 20 20 7b 0d 0a 09 | 09 69 66 20 28 20 53 68 | {...|.if ( Sh|
|00000d30| 6f 63 6b 53 68 69 65 6c | 64 20 21 3d 20 4e 6f 6e |ockShiel|d != Non|
|00000d40| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 43 75 72 |e )....{|.....Cur|
|00000d50| 72 65 6e 74 44 65 6c 61 | 79 54 69 6d 65 20 3d 20 |rentDela|yTime = |
|00000d60| 30 3b 0d 0a 0d 0a 09 09 | 09 69 66 20 28 21 62 53 |0;......|.if (!bS|
|00000d70| 68 69 65 6c 64 41 63 74 | 69 76 65 20 26 26 20 43 |hieldAct|ive && C|
|00000d80| 75 72 72 65 6e 74 53 68 | 69 65 6c 64 48 65 61 6c |urrentSh|ieldHeal|
|00000d90| 74 68 20 3e 20 30 29 0d | 0a 09 09 09 7b 0d 0a 09 |th > 0).|....{...|
|00000da0| 09 09 09 41 63 74 69 76 | 61 74 65 53 68 69 65 6c |...Activ|ateShiel|
|00000db0| 64 28 29 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 7d 0d |d();....|.}....}.|
|00000dc0| 0a 20 20 20 20 7d 0d 0a | 09 65 6c 73 65 20 69 66 |. }..|.else if|
|00000dd0| 20 28 20 28 41 49 43 6f | 6e 74 72 6f 6c 6c 65 72 | ( (AICo|ntroller|
|00000de0| 28 43 29 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |(C) != N|one) && |
|00000df0| 62 53 68 69 65 6c 64 41 | 63 74 69 76 65 20 26 26 |bShieldA|ctive &&|
|00000e00| 20 28 56 53 69 7a 65 28 | 43 2e 54 61 72 67 65 74 | (VSize(|C.Target|
|00000e10| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 49 6e 73 74 |.Locatio|n - Inst|
|00000e20| 69 67 61 74 6f 72 2e 4c | 6f 63 61 74 69 6f 6e 29 |igator.L|ocation)|
|00000e30| 20 3e 20 39 30 30 29 20 | 29 0d 0a 09 7b 0d 0a 09 | > 900) |)...{...|
|00000e40| 09 44 65 61 63 74 69 76 | 61 74 65 53 68 69 65 6c |.Deactiv|ateShiel|
|00000e50| 64 28 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 69 66 20 |d();...}|.....if |
|00000e60| 28 46 69 72 65 43 6f 75 | 6e 74 64 6f 77 6e 20 3c |(FireCou|ntdown <|
|00000e70| 3d 20 30 29 0d 0a 09 7b | 0d 0a 09 09 43 61 6c 63 |= 0)...{|....Calc|
|00000e80| 57 65 61 70 6f 6e 46 69 | 72 65 28 29 3b 0d 0a 09 |WeaponFi|re();...|
|00000e90| 09 69 66 20 28 62 43 6f | 72 72 65 63 74 41 69 6d |.if (bCo|rrectAim|
|00000ea0| 29 0d 0a 09 09 09 57 65 | 61 70 6f 6e 46 69 72 65 |).....We|aponFire|
|00000eb0| 52 6f 74 61 74 69 6f 6e | 20 3d 20 41 64 6a 75 73 |Rotation| = Adjus|
|00000ec0| 74 41 69 6d 28 62 41 6c | 74 46 69 72 65 29 3b 0d |tAim(bAl|tFire);.|
|00000ed0| 0a 09 09 69 66 20 28 53 | 70 72 65 61 64 20 3e 20 |...if (S|pread > |
|00000ee0| 30 29 0d 0a 09 09 09 57 | 65 61 70 6f 6e 46 69 72 |0).....W|eaponFir|
|00000ef0| 65 52 6f 74 61 74 69 6f | 6e 20 3d 20 72 6f 74 61 |eRotatio|n = rota|
|00000f00| 74 6f 72 28 76 65 63 74 | 6f 72 28 57 65 61 70 6f |tor(vect|or(Weapo|
|00000f10| 6e 46 69 72 65 52 6f 74 | 61 74 69 6f 6e 29 20 2b |nFireRot|ation) +|
|00000f20| 20 56 52 61 6e 64 28 29 | 2a 46 52 61 6e 64 28 29 | VRand()|*FRand()|
|00000f30| 2a 53 70 72 65 61 64 29 | 3b 0d 0a 0d 0a 20 20 20 |*Spread)|;.... |
|00000f40| 20 20 20 20 20 44 75 61 | 6c 46 69 72 65 4f 66 66 | Dua|lFireOff|
|00000f50| 73 65 74 20 2a 3d 20 2d | 31 3b 0d 0a 0d 0a 09 09 |set *= -|1;......|
|00000f60| 49 6e 73 74 69 67 61 74 | 6f 72 2e 4d 61 6b 65 4e |Instigat|or.MakeN|
|00000f70| 6f 69 73 65 28 31 2e 30 | 29 3b 0d 0a 09 09 69 66 |oise(1.0|);....if|
|00000f80| 20 28 21 62 41 6c 74 46 | 69 72 65 29 0d 0a 09 09 | (!bAltF|ire)....|
|00000f90| 7b 0d 0a 09 09 20 20 20 | 20 46 69 72 65 43 6f 75 |{.... | FireCou|
|00000fa0| 6e 74 64 6f 77 6e 20 3d | 20 46 69 72 65 49 6e 74 |ntdown =| FireInt|
|00000fb0| 65 72 76 61 6c 3b 0d 0a | 09 09 20 20 20 20 46 69 |erval;..|.. Fi|
|00000fc0| 72 65 28 43 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 41 |re(C);..|..}....A|
|00000fd0| 69 6d 4c 6f 63 6b 52 65 | 6c 65 61 73 65 54 69 6d |imLockRe|leaseTim|
|00000fe0| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|00000ff0| 63 6f 6e 64 73 20 2b 20 | 46 69 72 65 43 6f 75 6e |conds + |FireCoun|
|00001000| 74 64 6f 77 6e 20 2a 20 | 46 69 72 65 49 6e 74 65 |tdown * |FireInte|
|00001010| 72 76 61 6c 41 69 6d 4c | 6f 63 6b 3b 0d 0a 0d 0a |rvalAimL|ock;....|
|00001020| 09 20 20 20 20 72 65 74 | 75 72 6e 20 54 72 75 65 |. ret|urn True|
|00001030| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 72 65 74 75 72 6e |;...}...|..return|
|00001040| 20 46 61 6c 73 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 | False;.|.}....fu|
|00001050| 6e 63 74 69 6f 6e 20 43 | 65 61 73 65 41 6c 74 46 |nction C|easeAltF|
|00001060| 69 72 65 28 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |ire()..{|.. if|
|00001070| 20 28 53 68 6f 63 6b 53 | 68 69 65 6c 64 20 21 3d | (ShockS|hield !=|
|00001080| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 20 20 20 20 | None)..| |
|00001090| 44 65 61 63 74 69 76 61 | 74 65 53 68 69 65 6c 64 |Deactiva|teShield|
|000010a0| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |();..}..|..simula|
|000010b0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 44 65 73 |ted func|tion Des|
|000010c0| 74 72 6f 79 65 64 28 29 | 0d 0a 7b 0d 0a 20 20 20 |troyed()|..{.. |
|000010d0| 20 69 66 20 28 53 68 6f | 63 6b 53 68 69 65 6c 64 | if (Sho|ckShield|
|000010e0| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | != None|).. |
|000010f0| 20 20 20 53 68 6f 63 6b | 53 68 69 65 6c 64 2e 44 | Shock|Shield.D|
|00001100| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 0d 0a 20 20 20 |estroy()|;.... |
|00001110| 20 53 75 70 65 72 2e 44 | 65 73 74 72 6f 79 65 64 | Super.D|estroyed|
|00001120| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |();..}..|..simula|
|00001130| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 41 63 74 |ted func|tion Act|
|00001140| 69 76 61 74 65 53 68 69 | 65 6c 64 28 29 0d 0a 7b |ivateShi|eld()..{|
|00001150| 0d 0a 20 20 20 20 62 53 | 68 69 65 6c 64 41 63 74 |.. bS|hieldAct|
|00001160| 69 76 65 20 3d 20 74 72 | 75 65 3b 0d 0a 0d 0a 20 |ive = tr|ue;.... |
|00001170| 20 20 20 69 66 20 28 53 | 68 6f 63 6b 53 68 69 65 | if (S|hockShie|
|00001180| 6c 64 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |ld != No|ne).. |
|00001190| 20 20 20 20 20 53 68 6f | 63 6b 53 68 69 65 6c 64 | Sho|ckShield|
|000011a0| 2e 41 63 74 69 76 61 74 | 65 53 68 69 65 6c 64 28 |.Activat|eShield(|
|000011b0| 54 65 61 6d 29 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |Team);..|}....sim|
|000011c0| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|000011d0| 44 65 61 63 74 69 76 61 | 74 65 53 68 69 65 6c 64 |Deactiva|teShield|
|000011e0| 28 29 0d 0a 7b 0d 0a 20 | 20 20 20 62 53 68 69 65 |()..{.. | bShie|
|000011f0| 6c 64 41 63 74 69 76 65 | 20 3d 20 66 61 6c 73 65 |ldActive| = false|
|00001200| 3b 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 53 68 6f |;.... | if (Sho|
|00001210| 63 6b 53 68 69 65 6c 64 | 20 21 3d 20 4e 6f 6e 65 |ckShield| != None|
|00001220| 29 0d 0a 20 20 20 20 20 | 20 20 20 53 68 6f 63 6b |).. | Shock|
|00001230| 53 68 69 65 6c 64 2e 44 | 65 61 63 74 69 76 61 74 |Shield.D|eactivat|
|00001240| 65 53 68 69 65 6c 64 28 | 29 3b 0d 0a 7d 0d 0a 0d |eShield(|);..}...|
|00001250| 0a 2f 2f 20 46 6f 72 20 | 77 68 65 6e 20 74 68 65 |.// For |when the|
|00001260| 20 73 68 69 65 6c 64 20 | 69 73 20 68 69 74 20 62 | shield |is hit b|
|00001270| 79 20 6f 75 72 20 6f 77 | 6e 20 73 68 6f 63 6b 62 |y our ow|n shockb|
|00001280| 61 6c 6c 0d 0a 66 75 6e | 63 74 69 6f 6e 20 50 72 |all..fun|ction Pr|
|00001290| 6f 78 69 6d 69 74 79 45 | 78 70 6c 6f 73 69 6f 6e |oximityE|xplosion|
|000012a0| 28 29 0d 0a 7b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |()..{.. | local|
|000012b0| 20 45 6d 69 74 74 65 72 | 20 43 6f 6d 62 6f 48 69 | Emitter| ComboHi|
|000012c0| 74 3b 0d 0a 0d 0a 20 20 | 20 20 43 6f 6d 62 6f 48 |t;.... | ComboH|
|000012d0| 69 74 20 3d 20 53 70 61 | 77 6e 28 63 6c 61 73 73 |it = Spa|wn(class|
|000012e0| 27 4f 4e 53 53 68 6f 63 | 6b 54 61 6e 6b 53 68 69 |'ONSShoc|kTankShi|
|000012f0| 65 6c 64 43 6f 6d 62 6f | 48 69 74 27 2c 20 73 65 |eldCombo|Hit', se|
|00001300| 6c 66 29 3b 0d 0a 20 20 | 20 20 41 74 74 61 63 68 |lf);.. | Attach|
|00001310| 54 6f 42 6f 6e 65 28 43 | 6f 6d 62 6f 48 69 74 2c |ToBone(C|omboHit,|
|00001320| 20 27 42 69 67 47 75 6e | 27 29 3b 0d 0a 20 20 20 | 'BigGun|');.. |
|00001330| 20 43 6f 6d 62 6f 48 69 | 74 2e 53 65 74 52 65 6c | ComboHi|t.SetRel|
|00001340| 61 74 69 76 65 4c 6f 63 | 61 74 69 6f 6e 28 76 65 |ativeLoc|ation(ve|
|00001350| 63 74 28 33 30 30 2c 30 | 2c 30 29 29 3b 0d 0a 20 |ct(300,0|,0));.. |
|00001360| 20 20 20 53 65 74 54 69 | 6d 65 72 28 30 2e 35 2c | SetTi|mer(0.5,|
|00001370| 20 66 61 6c 73 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 | false);|..}....f|
|00001380| 75 6e 63 74 69 6f 6e 20 | 54 69 6d 65 72 28 29 0d |unction |Timer().|
|00001390| 0a 7b 0d 0a 20 20 20 20 | 50 6c 61 79 53 6f 75 6e |.{.. |PlaySoun|
|000013a0| 64 28 73 6f 75 6e 64 27 | 4f 4e 53 42 50 53 6f 75 |d(sound'|ONSBPSou|
|000013b0| 6e 64 73 2e 53 68 6f 63 | 6b 54 61 6e 6b 2e 53 68 |nds.Shoc|kTank.Sh|
|000013c0| 6f 63 6b 42 61 6c 6c 45 | 78 70 6c 6f 73 69 6f 6e |ockBallE|xplosion|
|000013d0| 27 2c 20 53 4c 4f 54 5f | 4e 6f 6e 65 2c 31 2e 30 |', SLOT_|None,1.0|
|000013e0| 2c 2c 38 30 30 29 3b 0d | 0a 20 20 20 20 53 70 61 |,,800);.|. Spa|
|000013f0| 77 6e 28 63 6c 61 73 73 | 27 4f 4e 53 53 68 6f 63 |wn(class|'ONSShoc|
|00001400| 6b 54 61 6e 6b 50 72 6f | 78 69 6d 69 74 79 45 78 |kTankPro|ximityEx|
|00001410| 70 6c 6f 73 69 6f 6e 27 | 2c 20 73 65 6c 66 2c 2c |plosion'|, self,,|
|00001420| 20 4c 6f 63 61 74 69 6f | 6e 20 2b 20 76 65 63 74 | Locatio|n + vect|
|00001430| 28 30 2c 30 2c 2d 37 30 | 29 29 3b 0d 0a 20 20 20 |(0,0,-70|));.. |
|00001440| 20 48 75 72 74 52 61 64 | 69 75 73 28 32 30 30 2c | HurtRad|ius(200,|
|00001450| 20 39 30 30 2c 20 63 6c | 61 73 73 27 44 61 6d 54 | 900, cl|ass'DamT|
|00001460| 79 70 65 53 68 6f 63 6b | 54 61 6e 6b 50 72 6f 78 |ypeShock|TankProx|
|00001470| 69 6d 69 74 79 45 78 70 | 6c 6f 73 69 6f 6e 27 2c |imityExp|losion',|
|00001480| 20 31 35 30 30 30 30 2c | 20 4c 6f 63 61 74 69 6f | 150000,| Locatio|
|00001490| 6e 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |n);..}..|..simula|
|000014a0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 50 6f 73 |ted func|tion Pos|
|000014b0| 74 4e 65 74 52 65 63 65 | 69 76 65 28 29 0d 0a 7b |tNetRece|ive()..{|
|000014c0| 0d 0a 20 20 20 20 53 75 | 70 65 72 2e 50 6f 73 74 |.. Su|per.Post|
|000014d0| 4e 65 74 52 65 63 65 69 | 76 65 28 29 3b 0d 0a 0d |NetRecei|ve();...|
|000014e0| 0a 20 20 20 20 69 66 20 | 28 62 53 68 69 65 6c 64 |. if |(bShield|
|000014f0| 41 63 74 69 76 65 20 21 | 3d 20 62 4c 61 73 74 53 |Active !|= bLastS|
|00001500| 68 69 65 6c 64 41 63 74 | 69 76 65 29 0d 0a 20 20 |hieldAct|ive).. |
|00001510| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 | {.. | if |
|00001520| 28 62 53 68 69 65 6c 64 | 41 63 74 69 76 65 29 0d |(bShield|Active).|
|00001530| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 41 63 74 |. | Act|
|00001540| 69 76 61 74 65 53 68 69 | 65 6c 64 28 29 3b 0d 0a |ivateShi|eld();..|
|00001550| 20 20 20 20 20 20 20 20 | 65 6c 73 65 0d 0a 20 20 | |else.. |
|00001560| 20 20 20 20 20 20 20 20 | 20 20 44 65 61 63 74 69 | | Deacti|
|00001570| 76 61 74 65 53 68 69 65 | 6c 64 28 29 3b 0d 0a 0d |vateShie|ld();...|
|00001580| 0a 20 20 20 20 20 20 20 | 20 62 4c 61 73 74 53 68 |. | bLastSh|
|00001590| 69 65 6c 64 41 63 74 69 | 76 65 20 3d 20 62 53 68 |ieldActi|ve = bSh|
|000015a0| 69 65 6c 64 41 63 74 69 | 76 65 3b 0d 0a 20 20 20 |ieldActi|ve;.. |
|000015b0| 20 7d 0d 0a 0d 0a 20 20 | 20 20 69 66 20 28 53 68 | }.... | if (Sh|
|000015c0| 6f 63 6b 53 68 69 65 6c | 64 20 21 3d 20 4e 6f 6e |ockShiel|d != Non|
|000015d0| 65 20 26 26 20 53 68 69 | 65 6c 64 48 69 74 43 6f |e && Shi|eldHitCo|
|000015e0| 75 6e 74 20 21 3d 20 4c | 61 73 74 53 68 69 65 6c |unt != L|astShiel|
|000015f0| 64 48 69 74 43 6f 75 6e | 74 29 0d 0a 20 20 20 20 |dHitCoun|t).. |
|00001600| 7b 0d 0a 20 20 20 20 20 | 20 20 20 53 68 6f 63 6b |{.. | Shock|
|00001610| 53 68 69 65 6c 64 2e 53 | 70 61 77 6e 48 69 74 45 |Shield.S|pawnHitE|
|00001620| 66 66 65 63 74 28 54 65 | 61 6d 29 3b 0d 0a 0d 0a |ffect(Te|am);....|
|00001630| 20 20 20 20 20 20 20 20 | 4c 61 73 74 53 68 69 65 | |LastShie|
|00001640| 6c 64 48 69 74 43 6f 75 | 6e 74 20 3d 20 53 68 69 |ldHitCou|nt = Shi|
|00001650| 65 6c 64 48 69 74 43 6f | 75 6e 74 3b 0d 0a 20 20 |eldHitCo|unt;.. |
|00001660| 20 20 7d 0d 0a 7d 0d 0a | 0d 0a 2f 2f 64 6f 20 65 | }..}..|..//do e|
|00001670| 66 66 65 63 74 73 20 28 | 6d 75 7a 7a 6c 65 20 66 |ffects (|muzzle f|
|00001680| 6c 61 73 68 2c 20 66 6f | 72 63 65 20 66 65 65 64 |lash, fo|rce feed|
|00001690| 62 61 63 6b 2c 20 65 74 | 63 29 20 69 6d 6d 65 64 |back, et|c) immed|
|000016a0| 69 61 74 65 6c 79 20 66 | 6f 72 20 74 68 65 20 77 |iately f|or the w|
|000016b0| 65 61 70 6f 6e 27 73 20 | 6f 77 6e 65 72 20 28 64 |eapon's |owner (d|
|000016c0| 6f 6e 27 74 20 77 61 69 | 74 20 66 6f 72 20 72 65 |on't wai|t for re|
|000016d0| 70 6c 69 63 61 74 69 6f | 6e 29 0d 0a 73 69 6d 75 |plicatio|n)..simu|
|000016e0| 6c 61 74 65 64 20 65 76 | 65 6e 74 20 4f 77 6e 65 |lated ev|ent Owne|
|000016f0| 72 45 66 66 65 63 74 73 | 28 29 0d 0a 7b 0d 0a 09 |rEffects|()..{...|
|00001700| 69 66 20 28 21 62 49 73 | 52 65 70 65 61 74 69 6e |if (!bIs|Repeatin|
|00001710| 67 46 46 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |gFF)...{|....if (|
|00001720| 62 49 73 41 6c 74 46 69 | 72 65 29 0d 0a 09 09 09 |bIsAltFi|re).....|
|00001730| 43 6c 69 65 6e 74 50 6c | 61 79 46 6f 72 63 65 46 |ClientPl|ayForceF|
|00001740| 65 65 64 62 61 63 6b 28 | 20 41 6c 74 46 69 72 65 |eedback(| AltFire|
|00001750| 46 6f 72 63 65 20 29 3b | 0d 0a 09 09 65 6c 73 65 |Force );|....else|
|00001760| 0d 0a 09 09 09 43 6c 69 | 65 6e 74 50 6c 61 79 46 |.....Cli|entPlayF|
|00001770| 6f 72 63 65 46 65 65 64 | 62 61 63 6b 28 20 46 69 |orceFeed|back( Fi|
|00001780| 72 65 46 6f 72 63 65 20 | 29 3b 0d 0a 09 7d 0d 0a |reForce |);...}..|
|00001790| 20 20 20 20 53 68 61 6b | 65 56 69 65 77 28 29 3b | Shak|eView();|
|000017a0| 0d 0a 0d 0a 09 69 66 20 | 28 52 6f 6c 65 20 3c 20 |.....if |(Role < |
|000017b0| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 29 0d |ROLE_Aut|hority).|
|000017c0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 21 62 49 73 41 |..{....i|f (!bIsA|
|000017d0| 6c 74 46 69 72 65 29 0d | 0a 20 20 20 20 20 20 20 |ltFire).|. |
|000017e0| 20 20 20 20 20 46 69 72 | 65 43 6f 75 6e 74 64 6f | Fir|eCountdo|
|000017f0| 77 6e 20 3d 20 46 69 72 | 65 49 6e 74 65 72 76 61 |wn = Fir|eInterva|
|00001800| 6c 3b 0d 0a 0d 0a 09 09 | 41 69 6d 4c 6f 63 6b 52 |l;......|AimLockR|
|00001810| 65 6c 65 61 73 65 54 69 | 6d 65 20 3d 20 4c 65 76 |eleaseTi|me = Lev|
|00001820| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2b |el.TimeS|econds +|
|00001830| 20 46 69 72 65 43 6f 75 | 6e 74 64 6f 77 6e 20 2a | FireCou|ntdown *|
|00001840| 20 46 69 72 65 49 6e 74 | 65 72 76 61 6c 41 69 6d | FireInt|ervalAim|
|00001850| 4c 6f 63 6b 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |Lock;...|. |
|00001860| 20 69 66 20 28 21 62 49 | 73 41 6c 74 46 69 72 65 | if (!bI|sAltFire|
|00001870| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 46 |).. | F|
|00001880| 6c 61 73 68 4d 75 7a 7a | 6c 65 46 6c 61 73 68 28 |lashMuzz|leFlash(|
|00001890| 29 3b 0d 0a 0d 0a 09 09 | 69 66 20 28 41 6d 62 69 |);......|if (Ambi|
|000018a0| 65 6e 74 45 66 66 65 63 | 74 45 6d 69 74 74 65 72 |entEffec|tEmitter|
|000018b0| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 41 6d | != None|).....Am|
|000018c0| 62 69 65 6e 74 45 66 66 | 65 63 74 45 6d 69 74 74 |bientEff|ectEmitt|
|000018d0| 65 72 2e 53 65 74 45 6d | 69 74 74 65 72 53 74 61 |er.SetEm|itterSta|
|000018e0| 74 75 73 28 74 72 75 65 | 29 3b 0d 0a 0d 0a 20 20 |tus(true|);.... |
|000018f0| 20 20 20 20 20 20 2f 2f | 20 50 6c 61 79 20 66 69 | //| Play fi|
|00001900| 72 69 6e 67 20 6e 6f 69 | 73 65 0d 0a 20 20 20 20 |ring noi|se.. |
|00001910| 20 20 20 20 69 66 20 28 | 21 62 41 6d 62 69 65 6e | if (|!bAmbien|
|00001920| 74 46 69 72 65 53 6f 75 | 6e 64 29 0d 0a 20 20 20 |tFireSou|nd).. |
|00001930| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|00001940| 20 20 20 20 69 66 20 28 | 62 49 73 41 6c 74 46 69 | if (|bIsAltFi|
|00001950| 72 65 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |re).. | |
|00001960| 20 20 20 20 20 50 6c 61 | 79 53 6f 75 6e 64 28 41 | Pla|ySound(A|
|00001970| 6c 74 46 69 72 65 53 6f | 75 6e 64 43 6c 61 73 73 |ltFireSo|undClass|
|00001980| 2c 20 53 4c 4f 54 5f 4e | 6f 6e 65 2c 20 46 69 72 |, SLOT_N|one, Fir|
|00001990| 65 53 6f 75 6e 64 56 6f | 6c 75 6d 65 2f 32 35 35 |eSoundVo|lume/255|
|000019a0| 2e 30 2c 2c 20 41 6c 74 | 46 69 72 65 53 6f 75 6e |.0,, Alt|FireSoun|
|000019b0| 64 52 61 64 69 75 73 2c | 2c 20 66 61 6c 73 65 29 |dRadius,|, false)|
|000019c0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |;.. | e|
|000019d0| 6c 73 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |lse.. | |
|000019e0| 20 20 20 20 20 50 6c 61 | 79 53 6f 75 6e 64 28 46 | Pla|ySound(F|
|000019f0| 69 72 65 53 6f 75 6e 64 | 43 6c 61 73 73 2c 20 53 |ireSound|Class, S|
|00001a00| 4c 4f 54 5f 4e 6f 6e 65 | 2c 20 46 69 72 65 53 6f |LOT_None|, FireSo|
|00001a10| 75 6e 64 56 6f 6c 75 6d | 65 2f 32 35 35 2e 30 2c |undVolum|e/255.0,|
|00001a20| 2c 20 46 69 72 65 53 6f | 75 6e 64 52 61 64 69 75 |, FireSo|undRadiu|
|00001a30| 73 2c 2c 20 66 61 6c 73 | 65 29 3b 0d 0a 20 20 20 |s,, fals|e);.. |
|00001a40| 20 20 20 20 20 7d 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d | }..|.}..}...|
|00001a50| 0a 66 75 6e 63 74 69 6f | 6e 20 4e 6f 74 69 66 79 |.functio|n Notify|
|00001a60| 53 68 69 65 6c 64 48 69 | 74 28 69 6e 74 20 44 61 |ShieldHi|t(int Da|
|00001a70| 6d 2c 20 50 61 77 6e 20 | 69 6e 73 74 69 67 61 74 |m, Pawn |instigat|
|00001a80| 65 64 42 79 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |edBy)..{|.. if|
|00001a90| 20 28 50 61 77 6e 28 4f | 77 6e 65 72 29 20 21 3d | (Pawn(O|wner) !=|
|00001aa0| 20 4e 6f 6e 65 20 26 26 | 20 50 61 77 6e 28 4f 77 | None &&| Pawn(Ow|
|00001ab0| 6e 65 72 29 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |ner).Con|troller |
|00001ac0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 28 28 49 6e 73 |!= None |&& ((Ins|
|00001ad0| 74 69 67 61 74 65 64 42 | 79 20 3d 3d 20 4e 6f 6e |tigatedB|y == Non|
|00001ae0| 65 29 20 7c 7c 20 28 49 | 6e 73 74 69 67 61 74 65 |e) || (I|nstigate|
|00001af0| 64 42 79 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 3d |dBy.Cont|roller =|
|00001b00| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 21 49 6e 73 74 |= None) ||| !Inst|
|00001b10| 69 67 61 74 65 64 42 79 | 2e 43 6f 6e 74 72 6f 6c |igatedBy|.Control|
|00001b20| 6c 65 72 2e 53 61 6d 65 | 54 65 61 6d 41 73 28 50 |ler.Same|TeamAs(P|
|00001b30| 61 77 6e 28 4f 77 6e 65 | 72 29 2e 43 6f 6e 74 72 |awn(Owne|r).Contr|
|00001b40| 6f 6c 6c 65 72 29 29 29 | 0d 0a 20 20 20 20 7b 0d |oller)))|.. {.|
|00001b50| 0a 09 09 4c 61 73 74 53 | 68 69 65 6c 64 48 69 74 |...LastS|hieldHit|
|00001b60| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00001b70| 65 53 65 63 6f 6e 64 73 | 3b 0d 0a 20 20 20 20 20 |eSeconds|;.. |
|00001b80| 20 20 20 43 75 72 72 65 | 6e 74 53 68 69 65 6c 64 | Curre|ntShield|
|00001b90| 48 65 61 6c 74 68 20 2d | 3d 20 44 61 6d 3b 0d 0a |Health -|= Dam;..|
|00001ba0| 20 20 20 20 20 20 20 20 | 53 68 69 65 6c 64 48 69 | |ShieldHi|
|00001bb0| 74 43 6f 75 6e 74 2b 2b | 3b 0d 0a 20 20 20 20 20 |tCount++|;.. |
|00001bc0| 20 20 20 53 68 6f 63 6b | 53 68 69 65 6c 64 2e 53 | Shock|Shield.S|
|00001bd0| 70 61 77 6e 48 69 74 45 | 66 66 65 63 74 28 54 65 |pawnHitE|ffect(Te|
|00001be0| 61 6d 29 3b 0d 0a 20 20 | 20 20 7d 0d 0a 7d 0d 0a |am);.. | }..}..|
|00001bf0| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00001c00| 74 69 6f 6e 20 54 69 63 | 6b 28 66 6c 6f 61 74 20 |tion Tic|k(float |
|00001c10| 44 54 29 0d 0a 7b 0d 0a | 20 20 20 20 53 75 70 65 |DT)..{..| Supe|
|00001c20| 72 2e 54 69 63 6b 28 44 | 54 29 3b 0d 0a 0d 0a 20 |r.Tick(D|T);.... |
|00001c30| 20 20 20 69 66 20 28 53 | 68 6f 63 6b 53 68 69 65 | if (S|hockShie|
|00001c40| 6c 64 20 3d 3d 20 4e 6f | 6e 65 20 7c 7c 20 52 6f |ld == No|ne || Ro|
|00001c50| 6c 65 20 3c 20 52 4f 4c | 45 5f 41 75 74 68 6f 72 |le < ROL|E_Author|
|00001c60| 69 74 79 29 0d 0a 20 20 | 20 20 20 20 20 20 72 65 |ity).. | re|
|00001c70| 74 75 72 6e 3b 0d 0a 0d | 0a 20 20 20 20 69 66 20 |turn;...|. if |
|00001c80| 28 43 75 72 72 65 6e 74 | 53 68 69 65 6c 64 48 65 |(Current|ShieldHe|
|00001c90| 61 6c 74 68 20 3c 3d 20 | 30 29 20 20 20 20 20 20 |alth <= |0) |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 20 20 2f 2f 20 52 61 6e | 20 6f 75 74 20 6f 66 20 | // Ran| out of |
|00001cc0| 73 68 69 65 6c 64 20 65 | 6e 65 72 67 79 20 73 6f |shield e|nergy so|
|00001cd0| 20 64 65 61 63 74 69 76 | 61 74 65 0d 0a 20 20 20 | deactiv|ate.. |
|00001ce0| 20 20 20 20 20 44 65 61 | 63 74 69 76 61 74 65 53 | Dea|ctivateS|
|00001cf0| 68 69 65 6c 64 28 29 3b | 0d 0a 0d 0a 20 20 20 20 |hield();|.... |
|00001d00| 69 66 20 28 21 62 53 68 | 69 65 6c 64 41 63 74 69 |if (!bSh|ieldActi|
|00001d10| 76 65 20 26 26 20 28 43 | 75 72 72 65 6e 74 53 68 |ve && (C|urrentSh|
|00001d20| 69 65 6c 64 48 65 61 6c | 74 68 20 3c 20 4d 61 78 |ieldHeal|th < Max|
|00001d30| 53 68 69 65 6c 64 48 65 | 61 6c 74 68 29 29 20 20 |ShieldHe|alth)) |
|00001d40| 2f 2f 20 53 68 69 65 6c | 64 20 69 73 20 6f 66 66 |// Shiel|d is off|
|00001d50| 20 61 6e 64 20 6e 65 65 | 64 73 20 72 65 63 68 61 | and nee|ds recha|
|00001d60| 72 67 65 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |rge.. | {.. |
|00001d70| 20 20 20 20 69 66 20 28 | 43 75 72 72 65 6e 74 44 | if (|CurrentD|
|00001d80| 65 6c 61 79 54 69 6d 65 | 20 3c 20 4d 61 78 44 65 |elayTime| < MaxDe|
|00001d90| 6c 61 79 54 69 6d 65 29 | 20 20 20 20 20 20 20 20 |layTime)| |
|00001da0| 20 20 20 2f 2f 20 53 68 | 69 65 6c 64 20 69 73 20 | // Sh|ield is |
|00001db0| 69 6e 20 64 65 6c 61 79 | 0d 0a 20 20 20 20 20 20 |in delay|.. |
|00001dc0| 20 20 20 20 20 20 43 75 | 72 72 65 6e 74 44 65 6c | Cu|rrentDel|
|00001dd0| 61 79 54 69 6d 65 20 2b | 3d 20 44 54 3b 0d 0a 20 |ayTime +|= DT;.. |
|00001de0| 20 20 20 20 20 20 20 65 | 6c 73 65 20 20 20 20 20 | e|lse |
|00001df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e10| 20 20 20 20 20 20 2f 2f | 20 53 68 69 65 6c 64 20 | //| Shield |
|00001e20| 69 73 20 69 6e 20 72 65 | 63 68 61 72 67 65 0d 0a |is in re|charge..|
|00001e30| 20 20 20 20 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | |{.. |
|00001e40| 20 20 20 20 20 20 20 43 | 75 72 72 65 6e 74 53 68 | C|urrentSh|
|00001e50| 69 65 6c 64 48 65 61 6c | 74 68 20 2b 3d 20 53 68 |ieldHeal|th += Sh|
|00001e60| 69 65 6c 64 52 65 63 68 | 61 72 67 65 52 61 74 65 |ieldRech|argeRate|
|00001e70| 20 2a 20 44 54 3b 0d 0a | 20 20 20 20 20 20 20 20 | * DT;..| |
|00001e80| 20 20 20 20 69 66 20 28 | 43 75 72 72 65 6e 74 53 | if (|CurrentS|
|00001e90| 68 69 65 6c 64 48 65 61 | 6c 74 68 20 3e 3d 20 4d |hieldHea|lth >= M|
|00001ea0| 61 78 53 68 69 65 6c 64 | 48 65 61 6c 74 68 29 0d |axShield|Health).|
|00001eb0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001ec0| 20 20 20 43 75 72 72 65 | 6e 74 53 68 69 65 6c 64 | Curre|ntShield|
|00001ed0| 48 65 61 6c 74 68 20 3d | 20 4d 61 78 53 68 69 65 |Health =| MaxShie|
|00001ee0| 6c 64 48 65 61 6c 74 68 | 3b 0d 0a 20 20 20 20 20 |ldHealth|;.. |
|00001ef0| 20 20 20 7d 0d 0a 20 20 | 20 20 7d 0d 0a 7d 0d 0a | }.. | }..}..|
|00001f00| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00001f10| 74 69 6f 6e 20 66 6c 6f | 61 74 20 43 68 61 72 67 |tion flo|at Charg|
|00001f20| 65 42 61 72 28 29 0d 0a | 7b 0d 0a 20 20 20 20 72 |eBar()..|{.. r|
|00001f30| 65 74 75 72 6e 20 46 43 | 6c 61 6d 70 28 43 75 72 |eturn FC|lamp(Cur|
|00001f40| 72 65 6e 74 53 68 69 65 | 6c 64 48 65 61 6c 74 68 |rentShie|ldHealth|
|00001f50| 2f 4d 61 78 53 68 69 65 | 6c 64 48 65 61 6c 74 68 |/MaxShie|ldHealth|
|00001f60| 2c 20 30 2e 30 2c 20 30 | 2e 39 39 39 29 3b 0d 0a |, 0.0, 0|.999);..|
|00001f70| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00001f80| 75 6e 63 74 69 6f 6e 20 | 48 75 72 74 52 61 64 69 |unction |HurtRadi|
|00001f90| 75 73 28 20 66 6c 6f 61 | 74 20 44 61 6d 61 67 65 |us( floa|t Damage|
|00001fa0| 41 6d 6f 75 6e 74 2c 20 | 66 6c 6f 61 74 20 44 61 |Amount, |float Da|
|00001fb0| 6d 61 67 65 52 61 64 69 | 75 73 2c 20 63 6c 61 73 |mageRadi|us, clas|
|00001fc0| 73 3c 44 61 6d 61 67 65 | 54 79 70 65 3e 20 44 61 |s<Damage|Type> Da|
|00001fd0| 6d 61 67 65 54 79 70 65 | 2c 20 66 6c 6f 61 74 20 |mageType|, float |
|00001fe0| 4d 6f 6d 65 6e 74 75 6d | 2c 20 76 65 63 74 6f 72 |Momentum|, vector|
|00001ff0| 20 48 69 74 4c 6f 63 61 | 74 69 6f 6e 20 29 0d 0a | HitLoca|tion )..|
|00002000| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 61 63 74 6f 72 20 |{...loca|l actor |
|00002010| 56 69 63 74 69 6d 73 3b | 0d 0a 09 6c 6f 63 61 6c |Victims;|...local|
|00002020| 20 66 6c 6f 61 74 20 64 | 61 6d 61 67 65 53 63 61 | float d|amageSca|
|00002030| 6c 65 2c 20 64 69 73 74 | 3b 0d 0a 09 6c 6f 63 61 |le, dist|;...loca|
|00002040| 6c 20 76 65 63 74 6f 72 | 20 64 69 72 3b 0d 0a 0d |l vector| dir;...|
|00002050| 0a 09 66 6f 72 65 61 63 | 68 20 56 69 73 69 62 6c |..foreac|h Visibl|
|00002060| 65 43 6f 6c 6c 69 64 69 | 6e 67 41 63 74 6f 72 73 |eCollidi|ngActors|
|00002070| 28 20 63 6c 61 73 73 20 | 27 41 63 74 6f 72 27 2c |( class |'Actor',|
|00002080| 20 56 69 63 74 69 6d 73 | 2c 20 44 61 6d 61 67 65 | Victims|, Damage|
|00002090| 52 61 64 69 75 73 2c 20 | 48 69 74 4c 6f 63 61 74 |Radius, |HitLocat|
|000020a0| 69 6f 6e 20 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 20 |ion )...|{....// |
|000020b0| 64 6f 6e 27 74 20 6c 65 | 74 20 62 6c 61 73 74 20 |don't le|t blast |
|000020c0| 64 61 6d 61 67 65 20 61 | 66 66 65 63 74 20 66 6c |damage a|ffect fl|
|000020d0| 75 69 64 20 2d 20 56 69 | 73 69 62 6c 65 43 6f 6c |uid - Vi|sibleCol|
|000020e0| 6c 69 73 69 6e 67 41 63 | 74 6f 72 73 20 64 6f 65 |lisingAc|tors doe|
|000020f0| 73 6e 27 74 20 72 65 61 | 6c 6c 79 20 77 6f 72 6b |sn't rea|lly work|
|00002100| 20 66 6f 72 20 74 68 65 | 6d 20 2d 20 6a 61 67 0d | for the|m - jag.|
|00002110| 0a 09 09 69 66 28 20 28 | 56 69 63 74 69 6d 73 20 |...if( (|Victims |
|00002120| 21 3d 20 73 65 6c 66 29 | 20 26 26 20 28 56 69 63 |!= self)| && (Vic|
|00002130| 74 69 6d 73 2e 52 6f 6c | 65 20 3d 3d 20 52 4f 4c |tims.Rol|e == ROL|
|00002140| 45 5f 41 75 74 68 6f 72 | 69 74 79 29 20 26 26 20 |E_Author|ity) && |
|00002150| 21 56 69 63 74 69 6d 73 | 2e 49 73 41 28 27 46 6c |!Victims|.IsA('Fl|
|00002160| 75 69 64 53 75 72 66 61 | 63 65 49 6e 66 6f 27 29 |uidSurfa|ceInfo')|
|00002170| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 64 69 72 20 | )....{.|....dir |
|00002180| 3d 20 56 69 63 74 69 6d | 73 2e 4c 6f 63 61 74 69 |= Victim|s.Locati|
|00002190| 6f 6e 20 2d 20 48 69 74 | 4c 6f 63 61 74 69 6f 6e |on - Hit|Location|
|000021a0| 3b 0d 0a 09 09 09 64 69 | 73 74 20 3d 20 46 4d 61 |;.....di|st = FMa|
|000021b0| 78 28 31 2c 56 53 69 7a | 65 28 64 69 72 29 29 3b |x(1,VSiz|e(dir));|
|000021c0| 0d 0a 09 09 09 64 69 72 | 20 3d 20 64 69 72 2f 64 |.....dir| = dir/d|
|000021d0| 69 73 74 3b 0d 0a 09 09 | 09 64 61 6d 61 67 65 53 |ist;....|.damageS|
|000021e0| 63 61 6c 65 20 3d 20 31 | 20 2d 20 46 4d 61 78 28 |cale = 1| - FMax(|
|000021f0| 30 2c 28 64 69 73 74 20 | 2d 20 56 69 63 74 69 6d |0,(dist |- Victim|
|00002200| 73 2e 43 6f 6c 6c 69 73 | 69 6f 6e 52 61 64 69 75 |s.Collis|ionRadiu|
|00002210| 73 29 2f 44 61 6d 61 67 | 65 52 61 64 69 75 73 29 |s)/Damag|eRadius)|
|00002220| 3b 0d 0a 09 09 09 56 69 | 63 74 69 6d 73 2e 54 61 |;.....Vi|ctims.Ta|
|00002230| 6b 65 44 61 6d 61 67 65 | 0d 0a 09 09 09 28 0d 0a |keDamage|.....(..|
|00002240| 09 09 09 09 64 61 6d 61 | 67 65 53 63 61 6c 65 20 |....dama|geScale |
|00002250| 2a 20 44 61 6d 61 67 65 | 41 6d 6f 75 6e 74 2c 0d |* Damage|Amount,.|
|00002260| 0a 09 09 09 09 49 6e 73 | 74 69 67 61 74 6f 72 2c |.....Ins|tigator,|
|00002270| 0d 0a 09 09 09 09 56 69 | 63 74 69 6d 73 2e 4c 6f |......Vi|ctims.Lo|
|00002280| 63 61 74 69 6f 6e 20 2d | 20 30 2e 35 20 2a 20 28 |cation -| 0.5 * (|
|00002290| 56 69 63 74 69 6d 73 2e | 43 6f 6c 6c 69 73 69 6f |Victims.|Collisio|
|000022a0| 6e 48 65 69 67 68 74 20 | 2b 20 56 69 63 74 69 6d |nHeight |+ Victim|
|000022b0| 73 2e 43 6f 6c 6c 69 73 | 69 6f 6e 52 61 64 69 75 |s.Collis|ionRadiu|
|000022c0| 73 29 20 2a 20 64 69 72 | 2c 0d 0a 09 09 09 09 28 |s) * dir|,......(|
|000022d0| 64 61 6d 61 67 65 53 63 | 61 6c 65 20 2a 20 4d 6f |damageSc|ale * Mo|
|000022e0| 6d 65 6e 74 75 6d 20 2a | 20 64 69 72 29 2c 0d 0a |mentum *| dir),..|
|000022f0| 09 09 09 09 44 61 6d 61 | 67 65 54 79 70 65 0d 0a |....Dama|geType..|
|00002300| 09 09 09 29 3b 0d 0a 09 | 09 09 69 66 20 28 56 65 |...);...|..if (Ve|
|00002310| 68 69 63 6c 65 28 56 69 | 63 74 69 6d 73 29 20 21 |hicle(Vi|ctims) !|
|00002320| 3d 20 4e 6f 6e 65 20 26 | 26 20 56 65 68 69 63 6c |= None &|& Vehicl|
|00002330| 65 28 56 69 63 74 69 6d | 73 29 2e 48 65 61 6c 74 |e(Victim|s).Healt|
|00002340| 68 20 3e 20 30 29 0d 0a | 09 09 09 09 56 65 68 69 |h > 0)..|....Vehi|
|00002350| 63 6c 65 28 56 69 63 74 | 69 6d 73 29 2e 44 72 69 |cle(Vict|ims).Dri|
|00002360| 76 65 72 52 61 64 69 75 | 73 44 61 6d 61 67 65 28 |verRadiu|sDamage(|
|00002370| 44 61 6d 61 67 65 41 6d | 6f 75 6e 74 2c 20 44 61 |DamageAm|ount, Da|
|00002380| 6d 61 67 65 52 61 64 69 | 75 73 2c 20 49 6e 73 74 |mageRadi|us, Inst|
|00002390| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|000023a0| 72 2c 20 44 61 6d 61 67 | 65 54 79 70 65 2c 20 4d |r, Damag|eType, M|
|000023b0| 6f 6d 65 6e 74 75 6d 2c | 20 48 69 74 4c 6f 63 61 |omentum,| HitLoca|
|000023c0| 74 69 6f 6e 29 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |tion);..|..}...}.|
|000023d0| 0a 7d 0d 0a 0d 0a 00 | |.}..... | |
+--------+-------------------------+-------------------------+--------+--------+